﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using MiniProfilerWebApplication1.Biz.Models;

namespace MiniProfilerWebApplication1.Biz.Maps
{
    public class CategoryMap : EntityTypeConfiguration<Category>
    {
        public CategoryMap()
        {
            this.ToTable("TCategory");
            this.HasKey(p => p.Id);
            this.Property(p => p.CategoryName).HasMaxLength(50).IsRequired();
        }
    }
}
